<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
      <title>Class SolverUtil | HiAPI-C# 2025 </title>
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta name="title" content="Class SolverUtil | HiAPI-C# 2025 ">
      
      <meta name="description" content="Utility class providing advanced numerical solving methods for systems of equations.">
      <link rel="icon" href="../img/HiAPI.favicon.ico">
      <link rel="stylesheet" href="../public/docfx.min.css">
      <link rel="stylesheet" href="../public/main.css">
      <meta name="docfx:navrel" content="../toc.html">
      <meta name="docfx:tocrel" content="toc.html">
      
      <meta name="docfx:rel" content="../">
      
      
      
      <meta name="loc:inThisArticle" content="In this article">
      <meta name="loc:searchResultsCount" content="{count} results for &quot;{query}&quot;">
      <meta name="loc:searchNoResults" content="No results for &quot;{query}&quot;">
      <meta name="loc:tocFilter" content="Filter by title">
      <meta name="loc:nextArticle" content="Next">
      <meta name="loc:prevArticle" content="Previous">
      <meta name="loc:themeLight" content="Light">
      <meta name="loc:themeDark" content="Dark">
      <meta name="loc:themeAuto" content="Auto">
      <meta name="loc:changeTheme" content="Change theme">
      <meta name="loc:copy" content="Copy">
      <meta name="loc:downloadPdf" content="Download PDF">

      <script type="module" src="./../public/docfx.min.js"></script>

      <script>
        const theme = localStorage.getItem('theme') || 'auto'
        document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
      </script>

  </head>

  <body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
    <header class="bg-body border-bottom">
      <nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
        <div class="container-xxl flex-nowrap">
          <a class="navbar-brand" href="../index.html">
            <img id="logo" class="svg" src="../img/HiAPI.logo.png" alt="">
            
          </a>
          <button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
            <i class="bi bi-three-dots"></i>
          </button>
          <div class="collapse navbar-collapse" id="navpanel">
            <div id="navbar">
              <form class="search" role="search" id="search">
                <i class="bi bi-search"></i>
                <input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
              </form>
            </div>
          </div>
        </div>
      </nav>
    </header>

    <main class="container-xxl">
      <div class="toc-offcanvas">
        <div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
          <div class="offcanvas-header">
            <h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
            <button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
          </div>
          <div class="offcanvas-body">
            <nav class="toc" id="toc"></nav>
          </div>
        </div>
      </div>

      <div class="content">
        <div class="actionbar">
          <button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
            <i class="bi bi-list"></i>
          </button>

          <nav id="breadcrumb"></nav>
        </div>

        <article data-uid="Hi.Geom.Solvers.SolverUtil">



  <h1 id="Hi_Geom_Solvers_SolverUtil" data-uid="Hi.Geom.Solvers.SolverUtil" class="text-break">
Class SolverUtil  
  </h1>

  <div class="facts text-secondary">
    <dl><dt>Namespace</dt><dd><a class="xref" href="Hi.html">Hi</a>.<a class="xref" href="Hi.Geom.html">Geom</a>.<a class="xref" href="Hi.Geom.Solvers.html">Solvers</a></dd></dl>
  <dl><dt>Assembly</dt><dd>HiGeom.dll</dd></dl>
  </div>

  <div class="markdown summary"><p>Utility class providing advanced numerical solving methods for systems of equations.</p>
</div>
  <div class="markdown conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class SolverUtil</code></pre>
  </div>




  <dl class="typelist inheritance">
    <dt>Inheritance</dt>
    <dd>
      <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
      <div><span class="xref">SolverUtil</span></div>
    </dd>
  </dl>



  <dl class="typelist inheritedMembers">
    <dt>Inherited Members</dt>
    <dd>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
    </div>
    <div>
      <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
    </div>
  </dd></dl>






  <h2 class="section" id="properties">Properties
</h2>


  <a id="Hi_Geom_Solvers_SolverUtil_LinearSlowIterationFunc_" data-uid="Hi.Geom.Solvers.SolverUtil.LinearSlowIterationFunc*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_LinearSlowIterationFunc" data-uid="Hi.Geom.Solvers.SolverUtil.LinearSlowIterationFunc">
  LinearSlowIterationFunc
  
  </h3>

  <div class="markdown level1 summary"><p>Gets a linear function for slow iteration convergence.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Func&lt;double, double&gt; LinearSlowIterationFunc { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd></dd>
  </dl>








  <a id="Hi_Geom_Solvers_SolverUtil_LogSlowIterationFunc_" data-uid="Hi.Geom.Solvers.SolverUtil.LogSlowIterationFunc*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_LogSlowIterationFunc" data-uid="Hi.Geom.Solvers.SolverUtil.LogSlowIterationFunc">
  LogSlowIterationFunc
  
  </h3>

  <div class="markdown level1 summary"><p>Gets a logarithmic function for slow iteration convergence.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static Func&lt;double, double&gt; LogSlowIterationFunc { get; }</code></pre>
  </div>





  <h4 class="section">Property Value</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd></dd>
  </dl>








  <h2 class="section" id="methods">Methods
</h2>


  <a id="Hi_Geom_Solvers_SolverUtil_DeepSolveArray_" data-uid="Hi.Geom.Solvers.SolverUtil.DeepSolveArray*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_DeepSolveArray_System_Func_System_Double___System_Double____System_Int32_System_Double___System_Double___System_Double_System_Func_System_Double_System_Double__System_Int32_System_Int32_System_Int32_" data-uid="Hi.Geom.Solvers.SolverUtil.DeepSolveArray(System.Func{System.Double[],System.Double[]},System.Int32,System.Double[],System.Double[],System.Double,System.Func{System.Double,System.Double},System.Int32,System.Int32,System.Int32)">
  DeepSolveArray(Func&lt;double[], double[]&gt;, int, double[], double[], double, Func&lt;double, double&gt;, int, int, int)
  
  </h3>

  <div class="markdown level1 summary"><p>Performs deep solving of a function with multiple parameters.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IEnumerable&lt;DeepSolvingStatus&gt; DeepSolveArray(Func&lt;double[], double[]&gt; func, int outputNum, double[] para, double[] dpara, double convergenceLimit, Func&lt;double, double&gt; slowIterationFunc = null, int maxDirectIteration = 6, int maxSlowIteration = 6, int maxTotalIteration = 1200)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>func</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[], <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]&gt;</dt>
    <dd><p>The function to solve.</p>
</dd>
    <dt><code>outputNum</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>The number of output values.</p>
</dd>
    <dt><code>para</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The initial parameter values.</p>
</dd>
    <dt><code>dpara</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The parameter delta values.</p>
</dd>
    <dt><code>convergenceLimit</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>The convergence limit.</p>
</dd>
    <dt><code>slowIterationFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd><p>The function for slow iteration.</p>
</dd>
    <dt><code>maxDirectIteration</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>The maximum number of direct iterations.</p>
</dd>
    <dt><code>maxSlowIteration</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>The maximum number of slow iterations.</p>
</dd>
    <dt><code>maxTotalIteration</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>The maximum total number of iterations.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.Geom.Solvers.DeepSolvingStatus.html">DeepSolvingStatus</a>&gt;</dt>
    <dd><p>An enumerable of deep solving status objects.</p>
</dd>
  </dl>











  <a id="Hi_Geom_Solvers_SolverUtil_GetApproxInv_" data-uid="Hi.Geom.Solvers.SolverUtil.GetApproxInv*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_GetApproxInv_System_Double_0__0___System_Double_" data-uid="Hi.Geom.Solvers.SolverUtil.GetApproxInv(System.Double[0:,0:],System.Double)">
  GetApproxInv(double[,], double)
  
  </h3>

  <div class="markdown level1 summary"><p>Calculates an approximate inverse of a matrix using SVD decomposition.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double[,] GetApproxInv(double[,] mat, double availableAccumulatedWeightRatio = 0.99999999)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>mat</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[,]</dt>
    <dd><p>The input matrix.</p>
</dd>
    <dt><code>availableAccumulatedWeightRatio</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>The ratio of accumulated weights to consider.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[,]</dt>
    <dd><p>The approximate inverse matrix.</p>
</dd>
  </dl>











  <a id="Hi_Geom_Solvers_SolverUtil_GetApproxInvAndOrthogonalPaces_" data-uid="Hi.Geom.Solvers.SolverUtil.GetApproxInvAndOrthogonalPaces*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_GetApproxInvAndOrthogonalPaces_System_Double_0__0___System_Collections_Generic_List_System_ValueTuple_System_Double_System_Double______" data-uid="Hi.Geom.Solvers.SolverUtil.GetApproxInvAndOrthogonalPaces(System.Double[0:,0:],System.Collections.Generic.List{System.ValueTuple{System.Double,System.Double[]}}@)">
  GetApproxInvAndOrthogonalPaces(double[,], out List&lt;(double eigenValue, double[] v)&gt;)
  
  </h3>

  <div class="markdown level1 summary"><p>Calculates an approximate inverse of a matrix and returns orthogonal paces using SVD decomposition.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double[,] GetApproxInvAndOrthogonalPaces(double[,] mat, out List&lt;(double eigenValue, double[] v)&gt; orthogonalPaces)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>mat</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[,]</dt>
    <dd><p>The input matrix.</p>
</dd>
    <dt><code>orthogonalPaces</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;(<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.valuetuple-system.double,system.double[]-.eigenvalue">eigenValue</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[] <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.valuetuple-system.double,system.double[]-.v">v</a>)&gt;</dt>
    <dd><p>The output list of orthogonal paces with eigenvalues and eigenvectors.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[,]</dt>
    <dd><p>The approximate inverse matrix.</p>
</dd>
  </dl>











  <a id="Hi_Geom_Solvers_SolverUtil_GetBiases_" data-uid="Hi.Geom.Solvers.SolverUtil.GetBiases*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_GetBiases_System_Func_System_Double___System_Double____System_Double___System_Double___" data-uid="Hi.Geom.Solvers.SolverUtil.GetBiases(System.Func{System.Double[],System.Double[]},System.Double[],System.Double[])">
  GetBiases(Func&lt;double[], double[]&gt;, double[], double[])
  
  </h3>

  <div class="markdown level1 summary"><p>Calculates the bias values between function outputs and target values.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double[] GetBiases(Func&lt;double[], double[]&gt; func, double[] paras, double[] targets)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>func</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[], <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]&gt;</dt>
    <dd><p>The function to evaluate.</p>
</dd>
    <dt><code>paras</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The parameter values.</p>
</dd>
    <dt><code>targets</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The target values.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The bias values.</p>
</dd>
  </dl>











  <a id="Hi_Geom_Solvers_SolverUtil_GetJacobMat_" data-uid="Hi.Geom.Solvers.SolverUtil.GetJacobMat*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_GetJacobMat_System_Func_System_Double___System_Double____System_Double___System_Double___System_Int32_" data-uid="Hi.Geom.Solvers.SolverUtil.GetJacobMat(System.Func{System.Double[],System.Double[]},System.Double[],System.Double[],System.Int32)">
  GetJacobMat(Func&lt;double[], double[]&gt;, double[], double[], int)
  
  </h3>

  <div class="markdown level1 summary"><p>Calculates the Jacobian matrix for a function.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double[,] GetJacobMat(Func&lt;double[], double[]&gt; func, double[] paras, double[] dparas, int targetNum)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>func</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[], <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]&gt;</dt>
    <dd><p>The function to evaluate.</p>
</dd>
    <dt><code>paras</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The parameter values.</p>
</dd>
    <dt><code>dparas</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The parameter delta values.</p>
</dd>
    <dt><code>targetNum</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>The number of target values.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[,]</dt>
    <dd><p>The Jacobian matrix.</p>
</dd>
  </dl>











  <a id="Hi_Geom_Solvers_SolverUtil_GetParasCompensation_" data-uid="Hi.Geom.Solvers.SolverUtil.GetParasCompensation*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_GetParasCompensation_System_Func_System_Double___System_Double____System_Double___System_Double___System_Double___System_Double_0__0____" data-uid="Hi.Geom.Solvers.SolverUtil.GetParasCompensation(System.Func{System.Double[],System.Double[]},System.Double[],System.Double[],System.Double[],System.Double[0:,0:]@)">
  GetParasCompensation(Func&lt;double[], double[]&gt;, double[], double[], double[], out double[,])
  
  </h3>

  <div class="markdown level1 summary"><p>Gets parameter compensation values based on the function, current parameters, parameter deltas, and target values.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double[] GetParasCompensation(Func&lt;double[], double[]&gt; func, double[] paras, double[] dparas, double[] targets, out double[,] jacob)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>func</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[], <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]&gt;</dt>
    <dd><p>The function to evaluate.</p>
</dd>
    <dt><code>paras</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The current parameter values.</p>
</dd>
    <dt><code>dparas</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The parameter delta values.</p>
</dd>
    <dt><code>targets</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The target values.</p>
</dd>
    <dt><code>jacob</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[,]</dt>
    <dd><p>The output Jacobian matrix.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The parameter compensation values.</p>
</dd>
  </dl>











  <a id="Hi_Geom_Solvers_SolverUtil_GetParasCompensation_" data-uid="Hi.Geom.Solvers.SolverUtil.GetParasCompensation*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_GetParasCompensation_System_Func_System_Double___System_Double____System_Double___System_Double___System_Double___System_Double___System_Double_0__0____" data-uid="Hi.Geom.Solvers.SolverUtil.GetParasCompensation(System.Func{System.Double[],System.Double[]},System.Double[],System.Double[],System.Double[],System.Double[],System.Double[0:,0:]@)">
  GetParasCompensation(Func&lt;double[], double[]&gt;, double[], double[], double[], double[], out double[,])
  
  </h3>

  <div class="markdown level1 summary"><p>Gets parameter compensation values based on the function, current parameters, parameter deltas, target values, and biases.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static double[] GetParasCompensation(Func&lt;double[], double[]&gt; func, double[] paras, double[] dparas, double[] targets, double[] biases, out double[,] jacob)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>func</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[], <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]&gt;</dt>
    <dd><p>The function to evaluate.</p>
</dd>
    <dt><code>paras</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The current parameter values.</p>
</dd>
    <dt><code>dparas</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The parameter delta values.</p>
</dd>
    <dt><code>targets</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The target values.</p>
</dd>
    <dt><code>biases</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The bias values.</p>
</dd>
    <dt><code>jacob</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[,]</dt>
    <dd><p>The output Jacobian matrix.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The parameter compensation values.</p>
</dd>
  </dl>











  <a id="Hi_Geom_Solvers_SolverUtil_GetParasCompensations_" data-uid="Hi.Geom.Solvers.SolverUtil.GetParasCompensations*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_GetParasCompensations_System_Func_System_Double___System_Double____System_Double___System_Double___System_Int32_System_Double___System_Double_0__0____" data-uid="Hi.Geom.Solvers.SolverUtil.GetParasCompensations(System.Func{System.Double[],System.Double[]},System.Double[],System.Double[],System.Int32,System.Double[],System.Double[0:,0:]@)">
  GetParasCompensations(Func&lt;double[], double[]&gt;, double[], double[], int, double[], out double[,])
  
  </h3>

  <div class="markdown level1 summary"><p>Gets multiple parameter compensation values for a function.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static List&lt;double[]&gt; GetParasCompensations(Func&lt;double[], double[]&gt; func, double[] paras, double[] dparas, int outputNum, double[] biases, out double[,] jacob)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>func</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[], <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]&gt;</dt>
    <dd><p>The function to evaluate.</p>
</dd>
    <dt><code>paras</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The parameter values.</p>
</dd>
    <dt><code>dparas</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The parameter delta values.</p>
</dd>
    <dt><code>outputNum</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>The number of output values.</p>
</dd>
    <dt><code>biases</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>The bias values.</p>
</dd>
    <dt><code>jacob</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[,]</dt>
    <dd><p>The output Jacobian matrix.</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]&gt;</dt>
    <dd><p>A list of parameter compensation values.</p>
</dd>
  </dl>











  <a id="Hi_Geom_Solvers_SolverUtil_Solve_" data-uid="Hi.Geom.Solvers.SolverUtil.Solve*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_Solve_System_Func_System_Double_System_Double__System_Double_System_Double_System_Double_System_Double_System_Int32_" data-uid="Hi.Geom.Solvers.SolverUtil.Solve(System.Func{System.Double,System.Double},System.Double,System.Double,System.Double,System.Double,System.Int32)">
  Solve(Func&lt;double, double&gt;, double, double, double, double, int)
  
  </h3>

  <div class="markdown level1 summary"><p>Solves a one-dimensional function for a target value.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IEnumerable&lt;SolvingResult&gt; Solve(Func&lt;double, double&gt; func, double para, double dpara, double target, double convergenceLimit, int maxIteration = 12)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>func</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd><p>The function to solve</p>
</dd>
    <dt><code>para</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Initial parameter value</p>
</dd>
    <dt><code>dpara</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Parameter step size for calculating derivatives</p>
</dd>
    <dt><code>target</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Target value to solve for</p>
</dd>
    <dt><code>convergenceLimit</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Convergence limit (acceptable error)</p>
</dd>
    <dt><code>maxIteration</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Maximum number of iterations</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.Geom.Solvers.SolvingResult.html">SolvingResult</a>&gt;</dt>
    <dd><p>A sequence of solving result objects showing the progress of the solution</p>
</dd>
  </dl>











  <a id="Hi_Geom_Solvers_SolverUtil_SolveArray_" data-uid="Hi.Geom.Solvers.SolverUtil.SolveArray*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_SolveArray_System_Func_System_Double___System_Double____System_Double___System_Double___System_Double___System_Func_System_Double___System_Double__System_Double_System_Int32_" data-uid="Hi.Geom.Solvers.SolverUtil.SolveArray(System.Func{System.Double[],System.Double[]},System.Double[],System.Double[],System.Double[],System.Func{System.Double[],System.Double},System.Double,System.Int32)">
  SolveArray(Func&lt;double[], double[]&gt;, double[], double[], double[], Func&lt;double[], double&gt;, double, int)
  
  </h3>

  <div class="markdown level1 summary"><p>Solves a multi-dimensional function for specified target values with a custom convergence function.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IEnumerable&lt;SolvingResult&gt; SolveArray(Func&lt;double[], double[]&gt; func, double[] paras, double[] dparas, double[] targets, Func&lt;double[], double&gt; convergenceFunc, double convergenceLimit, int maxIteration = 12)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>func</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[], <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]&gt;</dt>
    <dd><p>The function to solve</p>
</dd>
    <dt><code>paras</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>Initial parameter values</p>
</dd>
    <dt><code>dparas</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>Parameter step sizes for calculating derivatives</p>
</dd>
    <dt><code>targets</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>Target values to solve for</p>
</dd>
    <dt><code>convergenceFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[], <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd><p>Function to calculate convergence from biases</p>
</dd>
    <dt><code>convergenceLimit</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Convergence limit (acceptable error)</p>
</dd>
    <dt><code>maxIteration</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Maximum number of iterations</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.Geom.Solvers.SolvingResult.html">SolvingResult</a>&gt;</dt>
    <dd><p>A sequence of solving result objects showing the progress of the solution</p>
</dd>
  </dl>











  <a id="Hi_Geom_Solvers_SolverUtil_SolveArray_" data-uid="Hi.Geom.Solvers.SolverUtil.SolveArray*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_SolveArray_System_Func_System_Double___System_Double____System_Double___System_Double___System_Int32_System_Double_System_Int32_" data-uid="Hi.Geom.Solvers.SolverUtil.SolveArray(System.Func{System.Double[],System.Double[]},System.Double[],System.Double[],System.Int32,System.Double,System.Int32)">
  SolveArray(Func&lt;double[], double[]&gt;, double[], double[], int, double, int)
  
  </h3>

  <div class="markdown level1 summary"><p>Solves a multi-dimensional function with default convergence function.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IEnumerable&lt;SolvingResult&gt; SolveArray(Func&lt;double[], double[]&gt; func, double[] paras, double[] dparas, int funcDstNum, double convergenceLimit, int maxIteration = 12)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>func</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[], <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]&gt;</dt>
    <dd><p>The function to solve</p>
</dd>
    <dt><code>paras</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>Initial parameter values</p>
</dd>
    <dt><code>dparas</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>Parameter step sizes for calculating derivatives</p>
</dd>
    <dt><code>funcDstNum</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Number of output values from the function</p>
</dd>
    <dt><code>convergenceLimit</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Convergence limit (acceptable error)</p>
</dd>
    <dt><code>maxIteration</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Maximum number of iterations</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.Geom.Solvers.SolvingResult.html">SolvingResult</a>&gt;</dt>
    <dd><p>A sequence of solving result objects showing the progress of the solution</p>
</dd>
  </dl>











  <a id="Hi_Geom_Solvers_SolverUtil_SolveArray_" data-uid="Hi.Geom.Solvers.SolverUtil.SolveArray*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_SolveArray_System_Func_System_Double___System_Double____System_Double___System_Double___System_Int32_System_Func_System_Double___System_Double__System_Double_System_Int32_" data-uid="Hi.Geom.Solvers.SolverUtil.SolveArray(System.Func{System.Double[],System.Double[]},System.Double[],System.Double[],System.Int32,System.Func{System.Double[],System.Double},System.Double,System.Int32)">
  SolveArray(Func&lt;double[], double[]&gt;, double[], double[], int, Func&lt;double[], double&gt;, double, int)
  
  </h3>

  <div class="markdown level1 summary"><p>Solves a multi-dimensional function with a specified convergence function.</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IEnumerable&lt;SolvingResult&gt; SolveArray(Func&lt;double[], double[]&gt; func, double[] paras, double[] dparas, int funcDstNum, Func&lt;double[], double&gt; convergenceFunc, double convergenceLimit, int maxIteration = 12)</code></pre>
  </div>

  <h4 class="section">Parameters</h4>
  <dl class="parameters">
    <dt><code>func</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[], <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]&gt;</dt>
    <dd><p>The function to solve</p>
</dd>
    <dt><code>paras</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>Initial parameter values</p>
</dd>
    <dt><code>dparas</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</dt>
    <dd><p>Parameter step sizes for calculating derivatives</p>
</dd>
    <dt><code>funcDstNum</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Number of output values from the function</p>
</dd>
    <dt><code>convergenceFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[], <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>&gt;</dt>
    <dd><p>Function to calculate convergence from biases</p>
</dd>
    <dt><code>convergenceLimit</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></dt>
    <dd><p>Convergence limit (acceptable error)</p>
</dd>
    <dt><code>maxIteration</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
    <dd><p>Maximum number of iterations</p>
</dd>
  </dl>

  <h4 class="section">Returns</h4>
  <dl class="parameters">
    <dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="Hi.Geom.Solvers.SolvingResult.html">SolvingResult</a>&gt;</dt>
    <dd><p>A sequence of solving result objects showing the progress of the solution</p>
</dd>
  </dl>











  <a id="Hi_Geom_Solvers_SolverUtil_Test_" data-uid="Hi.Geom.Solvers.SolverUtil.Test*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_Test" data-uid="Hi.Geom.Solvers.SolverUtil.Test">
  Test()
  
  </h3>

  <div class="markdown level1 summary"><p>Internal Use Only</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void Test()</code></pre>
  </div>













  <a id="Hi_Geom_Solvers_SolverUtil_Test2_" data-uid="Hi.Geom.Solvers.SolverUtil.Test2*"></a>

  <h3 id="Hi_Geom_Solvers_SolverUtil_Test2" data-uid="Hi.Geom.Solvers.SolverUtil.Test2">
  Test2()
  
  </h3>

  <div class="markdown level1 summary"><p>Internal Use Only</p>
</div>
  <div class="markdown level1 conceptual"></div>

  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void Test2()</code></pre>
  </div>














</article>

        <div class="contribution d-print-none">
        </div>


      </div>

      <div class="affix">
        <nav id="affix"></nav>
      </div>
    </main>

    <div class="container-xxl search-results" id="search-results"></div>

    <footer class="border-top text-secondary">
      <div class="container-xxl">
        <div class="flex-fill">
          <span> Copyright © 2025 <a href='https://superhightech.com.tw'>Tech Coordinate</a>. All rights reserved. <a href='https://superhightech.com.tw'>超級高科技股份有限公司</a> © 2025 版權所有 </span>
        </div>
      </div>
    </footer>
  </body>
</html>
